package com.thunder.soft.common.util;

import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelProvider;
import androidx.lifecycle.ViewModelStoreOwner;

public class ViewModelProviderHelper {
     public static <T extends ViewModel> T buildViewModel(ViewModelStoreOwner owner, Class<T> tClass) {
        return new ViewModelProvider(owner, new ViewModelProvider.NewInstanceFactory()).get(tClass);
    }
}